
<!-- 头部全局 -->
<?php TPL::output('aomas/m_global/header2.tpl.htm'); ?>

<link rel="stylesheet" href="<?php echo G_STATIC_URL; ?>/aomas/css/m_all_product/m_all_product.css">


        <div class="m-section">
            <!-- <div class="m-imgback-container">
                <div class="m-img">
                    <img src="" alt="" class="m-home-bn1-img" style="margin-top: 47px;">
                </div>
            </div> -->

          <style>
              .gategory-li{
                  float: left;height: 50px;margin-left: 1%;display: inline-block;
              }
             .gategory-li a {
                  font-size: 16px;display: inline-block;border: 1px solid #eee;
                  padding: 0 15px;
                  line-height: 38px;
                  color: #5a5a5a;
              }
              .active{
                  background: #f9a900;
                  color: #FFF !important;
              }
          </style>
            <div class="m-product-group">
                <div class="m-product-group-header clearfix">
                    <!--<p class="pull-left">所有商品</p>-->
                    <ul style="clear: left;height: 120px;margin: 0;padding: 0;text-align: center" >
                        <li class="gategory-li" style="">
                            <a  href="/product/all/" <?php if(!$_GET['cat']){ ?> class="active" <?php }?>> 所有商品</a>
                        </li>
                        <?php foreach($this->category_list  AS $key => $item){?>
                        <li class="gategory-li" style="">
                            <a  href="./cat-<?php echo $item['id'];?>" <?php if($_GET['cat']==$item['id']){ ?> class="active" <?php }?> > <?php echo $item['title'];?></a>
                        </li>
                        <?php }?>
                    </ul>
                </div>
                <ul class="m-product-group-list clearfix">
                    <?php foreach( $this->goods_list AS $ket=>$val){ ?>

                    <li>
                        <a href="/product/goods-<?php echo $val['goods_id']?>/">
                        <div class="pro-li-body m-pro-li-body" style="border:0">
                            <div class="img-block m-product-img">
                                <div class="am-table">
                                    <div class="am-tablecell">
                                        <img  style="height: unset !important" src="<?php echo get_goods_cover_url($val['goods_id'],'mid',$val['cover']); ?>" alt="<?php echo $val['goods_name']; ?>">

                                    </div>
                                </div>
                            </div>
                            <p class="pro-li-title"><?php echo $val['goods_name']; ?></p>
                            <p class="pro-li-des"><?php echo $val['goods_brief']; ?></p>
                            <!-- <ul class="pro-li-label m-pro-li-label">
                                <li></li>
                                <li></li>
                            </ul> -->
                            <div class="pro-li-price m-pro-li-price">
                                <span class="new-price" style="margin-right:0"><?php echo $val['shop_price']; ?>元</span>
                            </div>
                        </div>
                        </a>
                    </li>
                    <?php }?>

                
                </ul>
                <?php echo $this->pagination; ?>

            </div>
        </div>

        
<!-- 尾部全局 -->
<?php TPL::output('aomas/m_global/footer.tpl.htm'); ?>